﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace DebugTools
{
    public partial class Form_AddressSet : Form
    {
        public Form_AddressSet()
        {
            InitializeComponent();

            string[] arrEEP = new string[] { "A0", "A2", "A4", "A6", "A8", "AA", "AC", "AE" };
            string[] arrPSU = new string[] { "B0", "B2", "B4", "B6", "B8", "BA", "BC", "BE" };

            comboBox_EEP.Items.AddRange(arrEEP);
            comboBox_EEP.Text = Form_Main.ininfo._sAddressEEP;

            comboBox_PSU.Items.AddRange(arrPSU);
            comboBox_PSU.Text = Form_Main.ininfo._sAddressPSU;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            Form_Main.ininfo._sAddressEEP = comboBox_EEP.Text;
            Form_Main.ininfo._sAddressPSU = comboBox_PSU.Text;
            this.Close();
        }
    }
}
